package helper;

import java.util.Vector;

public class FieldConfig {
	
	public static enum FieldType {INTEGER, FLOAT, TEXT, COMBO};
	
	private String name;
	private String label;
	private FieldType type;
	private boolean editable;
	private Vector<?> list;
	
	public FieldConfig(String name, String label, FieldType type, boolean editable, Vector<?> list) {
		this.name = name;
		this.label = label;
		this.type = type;
		this.editable = editable;
		this.list = list;
	}
	
	public FieldConfig(String name, String label, FieldType type, boolean editable) {
		this(name, label, type, editable, null);
	}
	
	public FieldConfig(String name, String label, FieldType type) {
		this(name, label, type, true, null);
	}
	
	public FieldConfig(String name, String label, FieldType type, Vector<?> list) {
		this(name, label, type, true, list);
	}
	
	public String getLabel() {
		return label;
	}
	public void setLabel(String label) {
		this.label = label;
	}
	public FieldType getType() {
		return type;
	}
	public void setType(FieldType type) {
		this.type = type;
	}
	public Vector<?> getList() {
		return list;
	}
	public void setList(Vector<?> list) {
		this.list = list;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public boolean isEditable() {
		return editable;
	}
	public void setEditable(boolean editable) {
		this.editable = editable;
	}
}
